<template>
  <div>
    <div class="weibo">
      <div class="wodefaba">
        <van-nav-bar
          title="我的发布"
          left-arrow
          @click-left="onClickLeft"
          @click-right="onClickRight"
        />
        <router-link :to="{ path: '/main' }" tag="text" class="jiantou"
          >1</router-link
        >
      </div>
      <ul>
        <li v-for="(item, index) in list" :key="index">
          <span>
            {{ item }}
          </span>
        </li>
      </ul>

      <div class="img">
        <img src="../img/fabutoux.webp" alt="" />
      </div>
      <p class="p1">去分享关于TA的珍贵瞬间吧</p>
    </div>
    <router-link :to="{ path: '/message/weibomsg' }" tag="button" class="button"
      ><span>去发布</span></router-link
    >
  </div>
</template>

<script>
//import { ref} from "vue";
export default {
  setup() {
    return {
      list: ["发现.0", "提问.0", "回答.0"],
    };
  },
};
</script>
<style lang="less" scoped>
.wodefaba {
  /deep/.van-nav-bar__arrow {
    color: #575757;
    margin-top: 20px;
    position: relative;
  }
  .jiantou {
    position: absolute;
    left: 20px;
    top: 25px;
    z-index: 99;
    color: transparent;
  }

  /deep/.van-nav-bar__title {
    width: 134px;
    height: 33px;
    font-size: 17px;
    text-align: center;
    line-height: 33px;
    font-family: PingFang SC;
    font-weight: bold;
    color: #000000;
  }
  .van-nav-bar__text {
    width: 66px;
    height: 32px;
    font-size: 17px;
    line-height: 32px;
    text-align: center;
    font-family: PingFang SC;
    font-weight: 500;
    color: #a1a1a1;
  }
}
ul {
  width: 100%;
  display: flex;
  height: 31px;
  background: #ffffff;
  box-shadow: 0px 1px 1px 0px rgba(83, 83, 83, 0.3);
}
li {
  width: 33%;
  justify-content: space-between;
  height: 31px;
  line-height: 31px;
}
ul li span {
  width: 36px;
  height: 12px;
  font-size: 12px;
  font-family: PingFang SC;
  font-weight: bold;
  color: #000000;
  margin-left: 33px;
  line-height: 12px;
}
.weibo {
  position: relative;
}
.img {
  width: 99px;
  height: 107px;
  position: absolute;
  left: 136px;
  top: 180px;
  border: 1px dashed lightgray;
}
img {
  width: 100%;
  height: 100%;
}

.p1 {
  width: 160px;
  height: 11px;
  font-size: 12px;
  font-family: PingFang SC;
  font-weight: bold;
  color: #9a9a9a;
  position: absolute;
  left: 120px;
  top: 300px;
}
.button {
  width: 83px;
  height: 30px;
  background: #ffc571;
  border-radius: 10px;
  position: absolute;
  left: 140px;
  top: 330px;
  border: transparent;
}
.button span {
  width: 35px;
  height: 11px;
  font-size: 12px;
  line-height: 11px;
  margin-left: 25px;
  font-family: PingFang SC;
  font-weight: bold;
  color: #000000;
}
</style>
